package edu.ahut.corejava2.oop.v2;

public class Ellipse implements IBase {
    public Ellipse(double a, double b) {
        this.a = a;
        this.b = b;
    }

    public double area() {
        return Math.PI * a * b;
    }

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    private double a;
    private double b;
}
